from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^api/v1.0/users', views.RegisterView.as_view()),
    url(r'^api/v1.0/session', views.LoginView.as_view()),
    url(r'^api/v1.0/login', views.ShowLoginView.as_view()),
    url(r'^$', views.home_view),
    url(r'^api/v1.0/center/$', views.ShowUserCenterView.as_view()),
    url(r'^api/v1.0/user/$', views.UserCenterView.as_view()),
    url(r'^api/v1.0/profile/$', views.ShowProfileView.as_view()),
    url(r'^api/v1.0/user/avatar$', views.UploadAvatarView.as_view()),
    url(r'^api/v1.0/user/name$', views.UpdateNameView.as_view()),
    url(r'^api/v1.0/user/auth$', views.RealNameAuthenticationView.as_view()),

]